import request from '@/utils/request'

// 查询订单信息列表
export function driverList(query) {
  return request({
    url: "/api/partner/service/system/driverList",
    method: "get",
    params: query,
  });
}

// 查询订单信息详细
export function queryDriverInfo(id) {
  return request({
    url: "/api/partner/service/system/queryDriverInfo/" + id,
    method: "get",
  });
}

// 新增订单信息
export function addDriver(data) {
  return request({
    url: "/api/partner/service/system/addDriver",
    method: "post",
    data: data,
  });
}

// 修改订单信息
export function updateDriverInfo(data) {
  return request({
    url: "/api/partner/service/system/updateDriverInfo",
    method: "post",
    data: data,
  });
}




export function deleteDriver(id) {
  return request({
    url: `/api/dispatch/deleteDriver/${id}`,
    method: "get",
  });
}

